* {
    padding: 0;
    margin: 0;
    list-style: none;
    text-decoration: none;
}

.box {
    margin: 0 auto;
    width: 500px;
    height: 200px;
}

.box>.img_box {
    position: relative;
}

.box>.img_box>ul {
    position: relative;
    height: 165px;
}

.box>.img_box>ul>li {
    position: absolute;
    bottom: 20px;
    width: 400px;
    border: 2px solid #000;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    transition: 0.3s ease-in-out;
}


/* 设置每一张图片的偏移值 */

.box>.img_box>ul>.list01 {
    transform: translateX(0) scale(0.8);
    z-index: 1;
    transform-origin: left center;
}

.box>.img_box>ul>.list02 {
    transform: translateX(50px) scale(1);
    z-index: 3;
}

.box>.img_box>ul>.list03 {
    /* 
  img_w : 400 * 0.8 = 320 
  img_offL: 500 - img_w = 180
  */
    transform: translateX(180px) scale(0.8);
    z-index: 1;
    transform-origin: left center;
}

.box>.img_box>ul>.list04 {
    transform: translateX(100px) scale(0.8);
    transform-origin: left center;
}

.box>.img_box>ul>li img {
    display: block;
    width: 100%;
}

.box>.img_box>.l_btn,
.box>.img_box>.r_btn {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%);
    z-index: 99999;
    text-align: center;
    line-height: 40px;
    font-size: 30px;
    color: #bababa;
    cursor: pointer;
    border: 2px solid #000;
    border-radius: 10px;
    box-sizing: border-box;
}

.box>.img_box>.l_btn:hover,
.box>.img_box>.r_btn:hover {
    color: #fff;
}

.box>.img_box>.l_btn {
    left: 5px;
}

.box>.img_box>.r_btn {
    right: 5px;
}

.box>.dot_box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

.box>.dot_box>span {
    width: 25px;
    height: 4px;
    background-color: #fff;
    margin: 0 5px;
    cursor: pointer;
    border: 1px solid #000;
    box-sizing: border-box;
    text-align: center;
}

.box>.dot_box>span:hover {
    background-color: #f00;
}

.box>.dot_box>.dot_active {
    background-color: #f00;
    border: 1px solid #5b5b5b;
}